package com.huxuesong.prcc.ums.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxs
 * @since 2019-08-26
 */
@TableName("ums_member")
@Data
public class UmsMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名，同手机号
     */
    private String username;

    /**
     * 自己的邀请码
     */
    @TableField("invited_code")
    private String invitedCode;

    /**
     * 密码
     */
    private String password;

    private Integer status;

    /**
     * 邀请人id号
     */
    @TableField("invited_user_id")
    private Integer invitedUserId;

    /**
     * 邀请人username
     */
    @TableField("invited_user_name")
    private String invitedUserName;

    /**
     * prcc值
     */
    private BigDecimal prcc;

    /**
     * prcc 锁定值
     */
    @TableField("prcc_lock")
    private BigDecimal prccLock;

    private BigDecimal yuanbao;

    /**
     * s令牌
     */
    @TableField("s_token")
    private BigDecimal sToken;

    /**
     * 锁定的s_token
     */
    @TableField("s_token_lock")
    private BigDecimal sTokenLock;

    /**
     * 是否解锁摇钱树
     */
    @TableField("is_tree_active")
    private Integer isTreeActive;

    /**
     * 用户等级
     */
    @TableField("member_level")
    private Integer memberLevel;

    /**
     * 用户币地址
     */
    @TableField("coin_address")
    private String coinAddress;

    private BigDecimal usdt;

    @TableField("usdt_lock")
    private BigDecimal usdtLock;

    private BigDecimal eth;

    @TableField("eth_lock")
    private BigDecimal ethLock;

    @TableField("last_block_number")
    private Integer lastBlockNumber;

    @TableField("tree_prcc")
    private BigDecimal treePrcc;

    @TableField("fans")
    private int fans;

    @TableField("prcc_dongjie")
    private BigDecimal prccDongjie;
    @TableField("create_time")

    private LocalDateTime createTime;

    @TableField("update_time")

    private LocalDateTime updateTime;

    public BigDecimal getSToken() {
        return sToken;
    }

    public void setSToken(BigDecimal sToken) {
        this.sToken = sToken;
    }






}
